package cn.zly.spring.beans.factory.support;

import cn.zly.spring.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * @author zhanglianyong
 * @date 2024/12/30
 */
public interface InstantiationStrategy {

	/**
	 * 实例化
	 * @param beanDefinition
	 * @param beanName
	 * @param constructor
	 * @param args
	 * @return
	 */
	Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor constructor, Object[] args);
}
